


// 项目路由配置 
import {
    MenuUnfoldOutlined,
    MenuFoldOutlined,
    UserOutlined,
    VideoCameraOutlined,
    UploadOutlined,
    PoweroffOutlined,
    ExclamationCircleOutlined,
    DownOutlined,
    HomeOutlined,
    DeploymentUnitOutlined,
    MailOutlined
} from '@ant-design/icons';

//   权限管理
//   文件都是 后台提供 
//   登录 知道你角色 知道你的权限  
export const routerList = [
    {
        path: "/main/home",
        text: "首页",
        icon: <HomeOutlined />,
        premission: 0  // 权限  1 2 3  >=0 
    },
    {
        path: "/main/anno",
        text: "公告",
        icon: <UploadOutlined />,
        premission: 0, // 权限  1 2 3  >=0 
        children: [
            {
                path: "/main/anno/list",
                text: "公告列表",
                icon: <UploadOutlined />,
                premission: 0
            },
            {
                path: "/main/anno/add",
                text: "公告新增",
                icon: <UploadOutlined />,
                premission: 1
            },
        ]
    },

    {
        path: "/main/advise",
        text: "意见",
        icon: <MenuFoldOutlined />,
        premission: 0, // 权限  1 2 3  >=0 
        children: [
            {
                path: "/main/advise/list",
                text: "意见列表",
                icon: <MenuFoldOutlined />,
                premission: 0
            },
            {
                path: "/main/advise/add",
                text: "意见新增",
                icon: <MenuFoldOutlined />,
                premission: 0
            },
        ]
    },
    {
        path: "/main/user",
        text: "用户",
        icon: <UserOutlined />,
        premission: 0, // 权限  1 2 3  >=0 
        children: [
            {
                path: "/main/user/list",
                text: "用户列表",
                icon: <UserOutlined />,
                premission: 0
            },
            {
                path: "/main/user/add",
                text: "用户管理",
                icon: <UserOutlined />,
                premission: 1
            },
            {
                path: "/main/user/fenxi",
                text: "用户分析",
                icon: <UserOutlined />,
                premission: 3
            },
        ]
    },
    {
        path: "/main/role",
        text: "权限",
        icon: <ExclamationCircleOutlined />,
        premission: 3, // 权限  1 2 3  >=0 
        children: [
            {
                path: "/main/role/action",
                text: "权限管理",
                icon: <ExclamationCircleOutlined />,
                premission: 3
            },
            {
                path: "/main/role/list",
                text: "权限列表",
                icon: <ExclamationCircleOutlined />,
                premission: 3
            },
            {
                path: "/main/role/fenxi",
                text: "数据分析",
                icon: <ExclamationCircleOutlined />,
                premission: 3
            },
        ]
    },
    {
        path: "/main/grade",
        text: "成绩管理",
        icon: <ExclamationCircleOutlined />,
        premission: 0, // 权限  1 2 3  >=0 
        children: [
            {
                path: "/main/grade/add",
                text: "添加成绩",
                icon: <ExclamationCircleOutlined />,
                premission: 0
            },
            {
                path: "/main/grade/my",
                text: "我的成绩",
                icon: <ExclamationCircleOutlined />,
                premission: 0
            },
            {
                path: "/main/grade/list",   //根据班级筛选 
                text: "成绩列表",
                icon: <ExclamationCircleOutlined />,
                premission: 0
            },
            {
                path: "/main/grade/fenxi",   //根据班级筛选 
                text: "成绩分析",
                icon: <ExclamationCircleOutlined />,
                premission: 0
            },
        ]
    },
    {
        path: "/main/jiaowu",
        text: "教务",
        icon: <ExclamationCircleOutlined />,
        premission: 3, // 权限  1 2 3  >=0 
        children: [
            {
                path: "/main/jiaowu/action",
                text: "教务管理",
                icon: <MenuUnfoldOutlined />,
                premission: 3
            },
            {
                path: "/main/jiaowu/xueke",
                text: "学科管理",
                icon: <MenuUnfoldOutlined />,
                premission: 3
            },
            {
                path: "/main/jiaowu/banji",
                text: "班级管理",
                icon: <MenuUnfoldOutlined />,
                premission: 3
            },
        ]
    },
    {
        path: "/main/info",
        text: "个人中心",
        icon: <DeploymentUnitOutlined />,
        premission: 0  // 权限  1 2 3  >=0 
    },
]